package com.example.house.model

import com.example.common.view.api.BaseApiServer
import com.example.common.view.model.BaseResultData
import com.example.house.api.HouseServer
import com.example.house.entity.House
import com.example.house.entity.People
import javax.inject.Inject

class HouseRepository @Inject constructor(private val apiServer: HouseServer):HouseServer {
    override suspend fun getHouse(regionId: Int): BaseResultData<List<House>> {
        return apiServer.getHouse(regionId)
    }

    override suspend fun getPeople(): BaseResultData<List<People>> {
        return apiServer.getPeople()
    }
}